home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _EC4F14A103524B28B0EF1ACCAB254F11 < prev    next >
Encoding:
Text File  |  2002-06-06  |  2.5 KB  |  55 lines

  1. // Copyright (C) 2001-2002 Raven Software.
  2. //
  3. // gt_syscalls.h -- system call function definitions
  4.  
  5. // print message on the local console
  6. void        trap_Print                        ( const char *fmt );
  7.  
  8. // abort the game
  9. void        trap_Error                        ( const char *fmt );
  10.  
  11. // Current system milliseconds
  12. int            trap_Milliseconds                ( void );
  13.  
  14. void        trap_Cvar_Register                ( vmCvar_t *cvar, const char *var_name, const char *value, int flags, float MinValue, float MaxValue );
  15. void        trap_Cvar_Update                ( vmCvar_t *cvar );
  16. void        trap_Cvar_Set                    ( const char *var_name, const char *value );
  17. int            trap_Cvar_VariableIntegerValue    ( const char *var_name );
  18. float        trap_Cvar_VariableValue            ( const char *var_name );
  19. void        trap_Cvar_VariableStringBuffer    ( const char *var_name, char *buffer, int bufsize );
  20.  
  21.  
  22. // General commands
  23. void        trap_Cmd_Restart                ( int delay );
  24. void        trap_Cmd_TextMessage            ( int client, const char* message );
  25. void        trap_Cmd_RadioMessage            ( int client, const char* message );
  26. int            trap_Cmd_RegisterSound            ( const char* sound );
  27. void        trap_Cmd_StartGlobalSound        ( int sound );
  28. void        trap_Cmd_StartSound                ( int sound, vec3_t origin );
  29. void        trap_Cmd_AddTeamScore            ( team_t team, int score );
  30. int            trap_Cmd_RegisterEffect            ( const char* effect );
  31. void        trap_Cmd_PlayEffect                ( int effect, vec3_t origin, vec3_t angles );
  32. int            trap_Cmd_RegisterIcon            ( const char* icon );
  33. void        trap_Cmd_SetHUDIcon                ( int index, int icon );
  34.  
  35. void        trap_Cmd_UseTargets                ( const char* targetname );
  36.  
  37. // Item commands
  38. qboolean    trap_Cmd_RegisterItem            ( int itemid, const char* name, gtItemDef_t* def );
  39. void        trap_Cmd_ResetItem                ( int itemid );
  40. void        trap_Cmd_SpawnItem                ( int itemid, vec3_t origin, vec3_t angles );
  41.  
  42. // Trigger commands
  43. qboolean    trap_Cmd_RegisterTrigger        ( int triggerid, const char* name, gtTriggerDef_t* def );
  44. void        trap_Cmd_GetTriggerTarget        ( int triggerid, const char* buffer, int buffersize );
  45.  
  46. // Client commands
  47. void        trap_Cmd_GetClientName            ( int clientid, const char* buffer, int buffersize );
  48. void        trap_Cmd_GetClientItems            ( int clientid, int* buffer, int buffersize );
  49. qboolean    trap_Cmd_DoesClientHaveItem        ( int clientid, int itemid );
  50. void        trap_Cmd_AddClientScore            ( int clientid, int score );
  51. void        trap_Cmd_GetClientOrigin        ( int clientid, vec3_t origin );
  52. void        trap_Cmd_GiveClientItem            ( int clientid, int itemid );
  53. void        trap_Cmd_TakeClientItem            ( int clientid, int itemid );
  54. int            trap_Cmd_GetClientList            ( team_t team, int* clients, int clientcount );
  55.